package com.gbq.qimo.anno;

import java.lang.reflect.Field;

/**
 * @ClassName ColumnMetadata
 * @Description TODO
 * @Author guobenqi
 * @Date 2021/5/29 11:03
 */
public class ColumnMetadata {
    /**
     * 列名
     */
    private String columnName;
    /**
     * 列序号
     */
    private int columnIndex;

    /**
     * 对应的java类型
     */
    private Class<?> javaType;

    /**
     * Entity类的属性字段,用来反射设置值
     */
    private Field field;

    public Field getField() {
        return field;
    }

    public void setField(Field field) {
        this.field = field;
    }

    public Class<?> getJavaType() {
        return javaType;
    }

    public void setJavaType(Class<?> javaType) {
        this.javaType = javaType;
    }


    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public int getColumnIndex() {
        return columnIndex;
    }

    public void setColumnIndex(int columnIndex) {
        this.columnIndex = columnIndex;
    }

}
